﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ComponentModel;


namespace Chinaer.WCF.Contracts
{
    public partial interface IChinaer
    {

        List<DTO.ShangJiaDTO> GetAllShangJias(string apiToken);

        [OperationContract]
        [Description("更新商家信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "UpdateShangJia",
             Method = "POST"
            )]
        Model.Common.JsonResult UpdateShangJia(DTO.ShangJiaDTO shangJiaDTO);
        [OperationContract]
        [Description("删除商家信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "DeleteShangJia",
             Method = "POST"
            )]
        Model.Common.JsonResult DeleteShangJia(DTO.ShangJiaDTO shangJiaDTO);
        [OperationContract]
        [Description("删除商家信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "DeleteShangJiaByID/{shangJiaID}/{apiToken}",
             Method = "GET"
            )]
        Model.Common.JsonResult DeleteShangJiaByID(string shangJiaID,string apiToken);


    }
}
